use c++ style attribute syntax with gnu namespace. (#1069)
* use c++ style attribute syntax with gnu namespace.
cppcheck 2.10.3 seems to have difficulty combining c++ style
attributes like [[noreturn]] with gnu __attribute__ syntax.
this leads to lots of false positive [nullPointerRedundantCheck]
warings.
I have a feeling I did this before and it failed somewhere. Perhaps
our compilers are all ready for it now.
* fix 7 real nullPointerRedundantCheck warnings.
and
7 nullPointerArithmeticRedundantCheck warnings
1 redundantInitialization warning
1 unreadVariable warning
* fix 1 nullPointerRedundantCheck.
A more involved fix would be to pass a reference to a non-const
parameter to mkshort_del_handle to be used as an in-out parameter.
* fix 1 nullPointerRedundantCheck
* workaround cppcheck bug with noretun.